<?php

namespace App\Observers;

use App\Models\feedModel;
use App\service\SendEmail;
use Illuminate\Support\Facades\DB;

class feedObserver
{
    /**
     * Handle the feedModel "created" event.
     *
     * @param  \App\Models\feedModel  $feedModel
     * @return void
     */
    public function created(feedModel $feedModel)
    {
        SendEmail::sendEmail('你好,我们已接收到您的反馈，我们将在1-2个工作日给您答复');
    }

    /**
     * Handle the feedModel "updated" event.
     *
     * @param  \App\Models\feedModel  $feedModel
     * @return void
     */
    public function updated(feedModel $feedModel)
    {

    }

    /**
     * Handle the feedModel "deleted" event.
     *
     * @param  \App\Models\feedModel  $feedModel
     * @return void
     */
    public function deleted(feedModel $feedModel)
    {
        //
    }

    /**
     * Handle the feedModel "restored" event.
     *
     * @param  \App\Models\feedModel  $feedModel
     * @return void
     */
    public function restored(feedModel $feedModel)
    {
        //
    }

    /**
     * Handle the feedModel "force deleted" event.
     *
     * @param  \App\Models\feedModel  $feedModel
     * @return void
     */
    public function forceDeleted(feedModel $feedModel)
    {
        //
    }
}
